<?php
$tel = $_REQUEST['tel'];
$password = $_REQUEST['password'];



include('./conn.php');  // 连接数据库


$select = "select * from registry_login where tel='$tel' and password='$password'";

$res = $conn->query($select);  // 执行查询 获得一个结果集

// var_dump($res);

if($res->num_rows>0){
  echo '<script>alert("登录成功");</script>';
  echo '<script>location.href="../src/indexs.html";</script>';
}else{
  echo '<script>alert("登录失败");</script>';
  echo '<script>location.href="../src/Login.html";</script>';
}



?>